import request from '@/http/request';
export const userLogin
    = (loginParams: {
        username: string
        password: number
        captcha: string

    }) => {
        return request("/api/users/login", "POST", loginParams)
    }
export const getUserInfoApi = () => {
    return request<any>("/api/users/current", "GET")
}


//获取验证码
export const getCaptcha
    = () => {
        return request("/api/captcha", "GET",)
    }
